<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .pic{
            width:50px;
        }
    </style>
    <meta name="referrer" content="no-referrer" />
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
</head>
<body>
    <div class="container">
        
        <table class="table table-hover">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>_id</th>
                    <th>pic</th>
                    <th>title</th>
                    <th>slogo</th>
                    <th>评价</th>
                    <th>评分</th>
                    <th>是否收藏</th>
                    <th>删除</th>
                </tr>
            </thead>
            <tbody>
                {{each movies}}
                <tr>
                    <td>{{$index+1}}</td>
                    <td>{{@ $value._id}}</td>
                     <td><img class="pic" src="{{@ $value.pic}}" alt=""></td>
                     <td>{{$value.title}}</td>
                     <td><a href="/detail?_id={{@ $value._id}}">{{$value.slogo}}</a></td>
                     <td>{{$value.evaluate}}</td>
                     <td>{{$value.rating}}</td>
                     <td>{{$value.collected}}</td>
                     <td><a href="/doDelete?_id={{@ $value._id}}&title={{$value.title}}" class="btn btn-danger">删除</a></td>
                </tr>
                {{/each}}
            </tbody>
        </table>
        
    </div>
</body>
</html>